package org.hxyjs.service;

import org.hxyjs.dto.DTO;
import org.hxyjs.entity.NewsRecord;
import org.hxyjs.page.PageInfo;

public interface NewsRecordService {
    /**
     * 查询全部学生
     * @return
     */
    public DTO<NewsRecord> getAllNewsRecords() throws Exception;

    /**
     * 删除学生
     * @param newno
     * @return
     * @throws Exception
     */
    public DTO<NewsRecord> deleteNewsRecordByNewno(String newno) throws Exception;
    /**
     *  修改学生
     * @param newsRecord
     * @return
     */
    public DTO<NewsRecord> updateNewsRecordByNewno(NewsRecord newsRecord)  throws Exception;
    /**
     *  增加学生
     * @param newsRecord
     * @return
     */
    public DTO<NewsRecord> addNewsRecord(NewsRecord newsRecord)  throws Exception;

    /**
     * 根据主键查询学生
     * @param newno
     * @return
     * @throws Exception
     */
    public DTO<NewsRecord> getNewsRecordByNewno(String newno) throws Exception;

     public DTO<NewsRecord> getNewsRecordByPage(PageInfo pageInfo) throws Exception;


}
